package com.ixuestar.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.ixuestar.entity.MemberPrintRecord;
import com.ixuestar.entity.MemberStudent;
import com.ixuestar.entity.MembershipInfo;
import com.ixuestar.entity.MembershipReRecord;
import com.ixuestar.entity.MembershipRealname;
import com.ixuestar.entity.MembershipVipInfo;
import com.ixuestar.entity.MinxueStu;
import com.ixuestar.entity.RealnameInfo;
import com.ixuestar.entity.RechargeRecord;
import com.ixuestar.entity.School;
import com.ixuestar.entity.SchoolClass;
import com.ixuestar.entity.SchoolGrade;
import com.ixuestar.entity.SchoolStudent;
import com.ixuestar.entity.SchoolTeacher;
import com.ixuestar.entity.TopupcardInfo;

public interface SmartTerminalMapper {
	//查询会员信息
	public MembershipInfo getMembershipInfo(@Param("map")Map<String, Object>map);
	//查询实名信息
	public RealnameInfo getRealnameInfo(@Param("map")Map<String, Object>map);
	//写入实名信息
	public void writeRealnameInfo(RealnameInfo realnameInfo);
	//写入实名与会员关系表
	public void writeMembershipRealname(MembershipRealname membershipRealname);
	//修改实名信息
	public void updateRealnameInfo(RealnameInfo realnameInfo);
	//获取实名和会员信息关系
	public MembershipRealname getMembershipRealname(@Param("map")Map<String, Object>map);
	//获取学校信息
	public List<School> getSchoolInfo(@Param("map")Map<String, Object>map);
	//获取年级
	public List<SchoolGrade> getSchoolGrades(@Param("map")Map<String, Object>map);
	//获取班级
	public List<SchoolClass> getSchoolClasses(@Param("map")Map<String, Object>map);
	//获取学生信息
	public List<SchoolStudent> getSchoolStudents(@Param("map")Map<String, Object>map);
	//获取老师信息
	public List<SchoolTeacher> geSchoolTeachers(@Param("map")Map<String, Object>map);
	//会员卡与学生信息绑定
	public void writeMemberStudent(MemberStudent memberStudent);
	//获取学生信息与会员卡关系
	public MemberStudent getMemberStudent(@Param("map")Map<String, Object>map);
	//获取敏学账号信息
	public MinxueStu getMinxueStu(@Param("map")Map<String, Object>map);
	//修改密码
	public void updatePassword(MembershipInfo membershipInfo);
	//充值卡查询
	public TopupcardInfo getTopupcardInfo(@Param("map")Map<String, Object>map);
	//修改充值卡激活状态
	public void updateTopupcardInfo(TopupcardInfo topupcardInfo);
	//写入充值记录
	public void writeRechargeRecord(RechargeRecord rechargeRecord);
	//写入充值关系表
	public void writeMembershipReRecord(MembershipReRecord membershipReRecord);
	//写入用户打印的文件id
	public void writeMembershipPrint(MemberPrintRecord memberPrintRecord);
	//获取用户的打印记录
	public List<MemberPrintRecord> getMemberPrintRecords(@Param("map")Map<String,Object>map);
	//查询充值关系表记录
	public List<MembershipReRecord> getMembershipReRecords(@Param("map")Map<String,Object>map);
	//获取充值记录
	public RechargeRecord getRechargeRecords(@Param("map")Map<String,Object>map);
	//创建vip账户
	public void writeMembershipVipInfo(MembershipVipInfo membershipVipInfo); 
}
